﻿
@using DevelopmentKit.Enums
@using DevelopmentKit.Extensions.MvcContrib
@model DevelopmentKit.Web.Controllers.ViewModels.FunctionViewModels.FunctionViewModel
@{
    ViewBag.Title = "修改功能";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    @Html.AntiForgeryToken()
    <fieldset>
        <legend>基本信息 </legend>
          <ul class="list_form">
        
            <li>
                @Html.LabelFor(model => model.Name)   
                @Html.TextBoxFor(model => model.Name, new { @class = "text-long" }) 
                @Html.ValidationMessageFor(model => model.Name)
            </li>
         
            
            <li>
                @Html.LabelFor(model => model.Category)   
                @Html.TextBoxFor(model => model.Category, new { @class = "text-long" }) 
                @Html.ValidationMessageFor(model => model.Category)
            </li>
            <li>
                @Html.LabelFor(model => model.Path)   
                @Html.TextBoxFor(model => model.Path, new { @class = "text-long" }) 
                @Html.ValidationMessageFor(model => model.Path)
            </li>
            <li>
                @Html.LabelFor(model => model.Method)   
                @Html.CheckBoxList("Method",(Method.Post.ToSelectListItems()),new { @class = "checkboxlist" }) 
                @Html.ValidationMessageFor(model => model.Method)
            </li> 
            <li>
                @Html.LabelFor(model => model.Remark)   
                @Html.TextAreaFor(model => model.Remark) 
                @Html.ValidationMessageFor(model => model.Remark)
            </li>
           
        </ul>
    </fieldset>
    
    <input type="submit" class="button-submit" value="保存" />
}

